package com.pengpai.pangucms.service.impl;

import com.pengpai.pangucms.entity.SysRole;
import com.pengpai.pangucms.mapper.SysRoleMapper;
import com.pengpai.pangucms.service.ISysRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色信息表 服务实现类
 * </p>
 *
 * @author lijunjie
 * @since 2023-07-30
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements ISysRoleService {
    @Autowired
    private SysRoleMapper sysRoleMapper;

    public List<SysRole> getAllRoles(){
        return sysRoleMapper.selectAllRoles();
    }

}
